package edu.lnu.ums.entities;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;


@Entity
public class Periodic extends UniversityPublications {
    private static final long serialVersionUID = 1L;

    @ManyToOne(cascade=CascadeType.PERSIST)
    @JoinColumn
    private Worker editor;

    public Human getEditor() {
        return editor;
    }

    public void setEditor(Worker editor) {
        this.editor = editor;
    }  
}
